package Vista;

import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import java.awt.Component;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import java.awt.Dimension;
import java.awt.Color;


public class VistaSeleccionClase extends JDialog{

	private static final long serialVersionUID = 1L;
	private final JPanel panel = new JPanel();
	private final JLabel lblClase = new JLabel("Clase no Habilitada");
	private final JComboBox<String> comboBoxClase = new JComboBox<String>();
	private final JPanel panel_1 = new JPanel();
	private final JPanel panel_2 = new JPanel();
	private final JPanel panel_3 = new JPanel();
	private final JPanel panel_4 = new JPanel();
	private final JButton btnAceptar = new JButton("Aceptar");
	private final JButton btnCancelar = new JButton("Cancelar");
	private final JLabel lblSeleccioneOtraClase = new JLabel("Seleccione otra clase");


	/**
	 * Create the dialog.
	 */
	public VistaSeleccionClase(JFrame padre) {
		super(padre);
		setMinimumSize(new Dimension(193, 133));
		setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
		setModal(true);
		setTitle("Nueva Clase");
		setResizable(false);
		pack();
		setLocationRelativeTo(padre);
		getContentPane().setLayout(new BorderLayout(0, 0));
		{
			getContentPane().add(panel, BorderLayout.NORTH);
		}
		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
		{
			lblClase.setForeground(Color.RED);
			lblClase.setFont(new Font("Tahoma", Font.BOLD, 14));
			lblClase.setAlignmentX(Component.CENTER_ALIGNMENT);
			panel.add(lblClase);
		}
		{
			lblSeleccioneOtraClase.setAlignmentX(Component.CENTER_ALIGNMENT);
			panel.add(lblSeleccioneOtraClase);
		}
		{
			getContentPane().add(panel_1, BorderLayout.CENTER);
		}
		comboBoxClase.setModel(new DefaultComboBoxModel<String>(new String[] {"A", "B", "F", "G"}));
		panel_1.add(comboBoxClase);
		{
			getContentPane().add(panel_2, BorderLayout.SOUTH);
		}
		{
			panel_2.add(btnAceptar);
			btnAceptar.setActionCommand("aceptar");
		}
		{
			panel_2.add(btnCancelar);
			btnCancelar.setActionCommand("cancelar");
		}
		{
			getContentPane().add(panel_3, BorderLayout.WEST);
		}
		{
			getContentPane().add(panel_4, BorderLayout.EAST);
		}
	}


	public JComboBox<String> getComboBoxClase() {
		return comboBoxClase;
	}


	public JButton getBtnAceptar() {
		return btnAceptar;
	}


	public JButton getBtnCancelar() {
		return btnCancelar;
	}
	

}
